package com.tangyuan.feignapis.live;


import com.tangyuan.common.result.Result;
import com.tangyuan.common.result.ResultCodeEnum;
import com.tangyuan.model.User;
import com.tangyuan.model.live.LiveRoom;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-live",contextId = "live")
public interface ILiveRoomFeignClient {

    @PostMapping("/feignApi/live/createIMUser")
    Result<ResultCodeEnum> createIMUser(@RequestBody User user);

    @GetMapping("/feignApi/live/getLiveById")
    LiveRoom getLiveById(@RequestParam Long Id);
}
